package DesignPattern.AbstractFactory;

class Division implements Operation {   //除法类

    @Override
    public int getResult(int a,int b) {
        if (b == 0) {
            throw new ArithmeticException("除数不能为0");
        }
        return a / b;
    }
}
